# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=curlie
pkgver=1.6.9
pkgrel=0
pkgdesc="Curlie is a frontend to curl that adds the ease of use of httpie"
url="https://github.com/rs/curlie"
arch="all"
license="MIT"
depends="curl"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/rs/curlie/archive/v$pkgver.tar.gz"

build() {
	go build -ldflags "-X main.version=$pkgver -X main.date=$(date -u -I)"
}

check() {
	go test
}

package() {
	install -Dm755 curlie "$pkgdir"/usr/bin/curlie
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
bfcd29715858efdec07d5cada5d7f9200f2dfc18842a664b0a05f497f333898cc7ebefb4fdf2206b7625fd1937dd5878b7f8055ed57a68c87d0f2b924b67c459  curlie-1.6.9.tar.gz
"
